/**
 * @FileName Leaf.java
 * @Package com.designMode.composite
 * -------------------------------------
 * @function Please write description of function
 * @Date 2016-1-18 下午5:15:17
 * -------------------------------------
 * Copyright (c) 2016,顾博君 All Rights Reserved.
 */
package com.designMode.composite;

/**
 * @author 顾博君
 * @ClassName Leaf
 * @Date 2016-1-18 下午5:15:17
 * @Function 树叶构件
 */
public class Leaf extends Component {
    private String name;

    public Leaf(String name) {
        System.out.println("新建树叶:" + name);
        this.name = name;
    }

    @Override
    public void operation() {
        System.out.println("Leaf->" + name);
    }
}
